package design.proxy.copycglib;

public class Kid {
    public void eat(Food food) {
        System.out.println("吃"+food.foodName());
    }
    public void brushTeeth() {
        System.out.println("刷牙");
    }
    public void washHand() {
        System.out.println("洗手");
    }
}
enum Food {
    /**
     * 米饭
     */
    RICE("米饭"),APPLE("苹果");
    private Food(String name) {
        this.foodName = name;
    }
    private String foodName;
    public String foodName() {
        return foodName;
    }
}
